using System.ComponentModel.DataAnnotations;
using FytSoa.Domain.Cm;

namespace FytSoa.Application.Cm.Param;

public class CmCommentAddParam
{
    /// <summary>
    /// 唯一编号
    /// </summary>
    public long Id { get; set; }

    /// <summary>
    /// 社区编号
    /// </summary>
    [Required]
    public long CommunityId { get; set; }

    /// <summary>
    /// 用户编号
    /// </summary>
    [Required]
    public long UserId { get; set; }

    /// <summary>
    /// 审核状态
    /// </summary>
    public bool Audit { get; set; } = false;

    /// <summary>
    /// 评论内容
    /// </summary>
    [Required]
    [StringLength(900)]
    public string Content { get; set; }

    /// <summary>
    /// 评星
    /// </summary>
    public int Star { get; set; } = 0;

    /// <summary>
    /// 回复内容
    /// </summary>
    public List<CmComment.CmCommentReply> ReplyBody { get; set; } = new();

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime CreateTime { get; set; } = DateTime.Now;

}